﻿#ifndef USERREGISTERCODEC_H
#define USERREGISTERCODEC_H

#include <qobject.h>
#include "ObjAutoInject.h"
#include "UserRegisterCodecBase.h"
#include <qhash.h>

class UserRegisterCodec : public QObject,public ObjAutoInject,public UserRegisterCodecBase
{
  Q_OBJECT
private://property
  QHash<unsigned char,UserRegisterCodecBase*> codecMap;
public:
  explicit UserRegisterCodec();
  virtual ~UserRegisterCodec();
signals:
public:
  virtual DataPackage_UserRegisterCodec* decode(DataPackage_UserRegisterCodec* dataPackage_UserRegisterCodec)override;
  static DataPackage_UserRegisterCodec* makeAck(DataPackage_UserRegisterCodec* dataPackage_UserRegisterCodec,RegisterType registerType);
public:
  virtual void objectAutoInjection(QHash<QString,QObject*>* objMap)override;
};

#endif // USERREGISTERCODEC_H
